$OpenBSD: patch-relay_Makefile_OpenBSD,v 1.1 2013/05/10 09:56:45 sthen Exp $
--- relay/Makefile.OpenBSD.orig	Fri May 10 10:49:49 2013
+++ relay/Makefile.OpenBSD	Fri May 10 10:49:49 2013
@@ -0,0 +1,23 @@
+OBJ = relay.o getmac.o common_subr.o interface.o
+LDFLAGS = -lkvm
+
+relay: ${OBJ}
+	${CC} ${CFLAGS} -o relay ${OBJ} ${LDFLAGS}
+
+install: relay
+	${INSTALL} -m 755 -s relay ${SBIN}/relay
+	cp relay.8 ${MAN}/man8/relay.8
+	cp dhcpdb.server.5 ${MAN}/man5/dhcpdb.server.5
+
+relay.o:	relay.c common.h ../server/dhcp.h ../server/common_subr.h
+common_subr.o:	../server/common_subr.c ../server/dhcp.h common.h ../server/common_subr.h
+	${CC} ${CFLAGS} -c ../server/common_subr.c
+
+interface.o:	../server/interface.c common.h
+	${CC} ${CFLAGS} -c ../server/interface.c
+
+getmac.o:	../server/getmac.c
+	${CC} ${CFLAGS} -c ../server/getmac.c
+
+clean:
+	rm -f *~ *.o *core* relay
